package edu.hawaii.ics414.blackjack.card;

import static org.junit.Assert.assertEquals;
import org.junit.Test;

/**
 * Tests the Rank class.
 * 
 * @author Branden Ogata
 *
 */

public class TestRank
{
  /**
   * Tests the toString method for all possible values of Rank.
   * 
   */
  
  @Test
  public void test()
  {
    assertEquals("Check Ace", "A", Rank.ACE.toString());
    assertEquals("Check Two", "2", Rank.TWO.toString());
    assertEquals("Check Three", "3", Rank.THREE.toString());
    assertEquals("Check Four", "4", Rank.FOUR.toString());
    assertEquals("Check Five", "5", Rank.FIVE.toString());
    assertEquals("Check Six", "6", Rank.SIX.toString());
    assertEquals("Check Seven", "7", Rank.SEVEN.toString());
    assertEquals("Check Eight", "8", Rank.EIGHT.toString());
    assertEquals("Check Nine", "9", Rank.NINE.toString());
    assertEquals("Check Ten", "10", Rank.TEN.toString());
    assertEquals("Check Jack", "J", Rank.JACK.toString());
    assertEquals("Check Queen", "Q", Rank.QUEEN.toString());
    assertEquals("Check King", "K", Rank.KING.toString());
  }

}
